<template>
    <div class="recommend">
        <div v-for="item in recommends" class="recommend-item">
            <a :href="item.link">
                <img :src="item.image">
                <div>{{item.title}}</div>
            </a>
        </div>
    </div>
</template>

<script>
  export default {
    name: "Recommend",
    props: {
      recommends: {
        type: Array,
        default() {
          return [
            {
              title: '百度一下',
              link: 'https://www.baidu.com',
              image: 'https://www.baidu.com/img/dong_a16028f60eed614e4fa191786f32f417.gif'
            }
          ];
        }
      }
    }
  }
</script>

<style scoped>
    .recommend {
        display: flex;
        text-align: center;
        padding: 10px 0 15px;
        border-bottom: 8px solid #eeeeee;
    }

    .recommend-item {
        flex: 1;
        font-size: 12px;
    }

    .recommend-item img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
    }

</style>